﻿<%@ Page Title="Brand" Language="C#" MasterPageFile="~/Admin/Admin.master" AutoEventWireup="true" CodeFile="Category.aspx.cs" Inherits="Admin_Category" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
    <!-- Ten trang web -->
    <div class="title">Brand</div>
    <!-- Cac nut them/xoa category -->
    <div class="toolbar">
        <input type="button" value="Add Brand"
    onclick="location.href='EditCategory.aspx'"/>
        <asp:Button Text="Delete selected" runat="server" ID="btnDelete"
    CssClass="multidelete"/>
    </div>
    <!-- Danh sach cac category -->
    <table class="list">
        <tr>
            <th class="cid"><input type="checkbox" id="chkAll"/></th>
            <th class="link">Name</th>
            <th class="id">ID</th>
        </tr>
        <asp:Repeater runat="server" ID="repCategory">
        <AlternatingItemTemplate>
        <tr class="even">
            <td><input type="checkbox" value='<%#Eval("MaThuongHieu") %>' 
        name="cid" id="cid"/></td> 
            <td class="link"><a
        href='EditCategory.aspx?cid=<%#Eval("MaThuongHieu") %>'><%#Eval("TenThuongHieu") %></a></td>
            <td><%#Eval("MaThuongHieu")%></td>
        </tr>
        </AlternatingItemTemplate>
        <ItemTemplate>
        <tr>
            <td><input type="checkbox" value='<%#Eval("MaThuongHieu") %>' 
        name="cid" id="cid"/></td>
            <td class="link"><a
        href='EditCategory.aspx?cid=<%#Eval("MaThuongHieu") %>'><%#Eval("TenThuongHieu") %></a></td>
            <td><%#Eval("MaThuongHieu")%></td>
        </tr>
        </ItemTemplate>
        </asp:Repeater>
    </table>
</asp:Content>

